#include"process.h"
int main()
{
    //int mkfifo(const char *pathname, mode_t mode);
    int ret=Mkfifo("./myfifo",0777);
    int fd=Open("./myfifo",O_RDWR);
    write(fd,"hello world",strlen("hello world"));
    //getchar();
    sleep(10);//要等读完，才关闭，否则管道破裂
    close(fd);
    return 0;
}